package com.company.modelo.service;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.company.modelo.Entity.AccountEntity;
import com.company.modelo.dao.AccountDao;
import com.company.modelo.dao.AccountDaoImpl;



@Service
public class AccountServiceImpl implements AccountService {
	
	private static final Logger logger = Logger.getLogger(AccountServiceImpl.class);
	
	 @Autowired
	 private AccountDao accountdao;
	
	public AccountEntity getAccountDetails(String accountNumber) {
		logger.info("Llamada al metodo getAccountDetails con parametro accountNumber="+accountNumber);
		System.out.println("paso por servicio");		 
		 return accountdao.getAccountDetails(accountNumber);			 
		 
	}


}
